package one.stand.fallback;

import com.jmp.service.api.admin.dto.AppIndexGoodsRemoveRequest;
import com.jmp.service.api.admin.dto.AppIndexGoodsRequest;
import com.jmp.service.api.admin.dto.AppIndexGoodsResponse;
import com.jmp.service.api.admin.dto.AppIndexGoodsSaveRequest;
import com.jmp.feign.AppIndexGoodsFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author hujun
 */
@Component
public class AppIndexGoodsFallback implements AppIndexGoodsFeign {
    @Override
    public ResultModel<AppIndexGoodsResponse> list(AppIndexGoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel appIndexGoodsSave(AppIndexGoodsSaveRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel appIndexGoodsRemove(AppIndexGoodsRemoveRequest request) {
        return ResultModel.faultTolerant();
    }
}
